/*
 * driver.cpp
 *
 *  Created on: 2021年3月13日
 *      Author: root
 */
#include <drivers/driver.h>


using namespace myos::drivers;


Driver::Driver(){

}

Driver::~Driver(){

}

void Driver::Activate(){

}

int Driver::Reset(){
	return 0;
}

void Driver::Deactivate(){

}

DriverManager::DriverManager(){
	numDrivers=0;
}

void DriverManager::AddDriver(Driver* drv){
	drivers[numDrivers]=drv;
	numDrivers++;
}

void DriverManager::ActiveAll(){
	for(int i=0;i<numDrivers;i++){
		drivers[i]->Activate();
	}
}



